package com.tjec.project.projectLeaderWorkbeanch.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.tjec.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tjec.framework.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 专家专业分类对象 bms_md_expert_type
 * 
 * @author tjec
 * @date 2020-04-21
 */
public class BmsMdExpertType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id 主键 */
    @JsonIgnore
    private String id;

    /** 上级 */
    @Excel(name = "上级")
    private String parentId;

    /** 中文名称 */
    @Excel(name = "中文名称")
    private String cname;

    /** 类型 （0一级类别，1二级类别，2三级类别） */
    @Excel(name = "类型", readConverterExp = "0=一级类别，1二级类别，2三级类别")
    private String type;

    /** guid */
    @ApiModelProperty(value = "guid")
    private String guid;

    /** children */
    @ApiModelProperty(value = "children")
    private List<BmsMdExpertType> children = new ArrayList<BmsMdExpertType>();

    public List<BmsMdExpertType> getChildren() {
		return children;
	}

	public void setChildren(List<BmsMdExpertType> children) {
		this.children = children;
	}

	public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setCname(String cname) 
    {
        this.cname = cname;
    }

    public String getCname() 
    {
        return cname;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setGuid(String guid) 
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("cname", getCname())
            .append("type", getType())
            .append("guid", getGuid())
            .toString();
    }
}
